import { getToken, getTenant } from "@/utils/auth";
import useUserStore from '@/store/modules/user';

export default function baseForm() {
  const headers = ref({
    Authorization: "Bearer " + getToken(),

  });
  const tenantRrl = getTenant() ? JSON.parse(getTenant()) : null
  const baseURL = import.meta.env.VITE_APP_BASE_API;
  const actionUrl = ref(baseURL + "/system/file/uploadLocal");
  const fileList = ref([]);
  const fileList2 = ref([]);
  const fileList3 = ref([]);
  const fileList4 = ref([]);
  const tenantGroupId = useUserStore().tenant.tenantGroupId;
  return {
    headers,
    actionUrl,
    fileList,
    fileList2,
    fileList3,
    fileList4,
    tenantGroupId
  }
}